/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_mobile")
//@NamedQueries({@NamedQuery(name = "TTjMobile.findAll", query = "SELECT t FROM TTjMobile t"), @NamedQuery(name = "TTjMobile.findById", query = "SELECT t FROM TTjMobile t WHERE t.id = :id"), @NamedQuery(name = "TTjMobile.findByUa", query = "SELECT t FROM TTjMobile t WHERE t.ua = :ua"), @NamedQuery(name = "TTjMobile.findByUaname", query = "SELECT t FROM TTjMobile t WHERE t.uaname = :uaname"), @NamedQuery(name = "TTjMobile.findByPricetype", query = "SELECT t FROM TTjMobile t WHERE t.pricetype = :pricetype"), @NamedQuery(name = "TTjMobile.findByCyear", query = "SELECT t FROM TTjMobile t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjMobile.findByCmonth", query = "SELECT t FROM TTjMobile t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjMobile.findByDownloadnumber", query = "SELECT t FROM TTjMobile t WHERE t.downloadnumber = :downloadnumber")})
public class TTjMobile implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "ua")
    private String ua;
    @Column(name = "uaname")
    private String uaname;
    @Column(name = "pricetype")
    private String pricetype;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "downloadnumber")
    private Integer downloadnumber;

    public TTjMobile() {
    }

    public TTjMobile(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUa() {
        return ua;
    }

    public void setUa(String ua) {
        this.ua = ua;
    }

    public String getUaname() {
        return uaname;
    }

    public void setUaname(String uaname) {
        this.uaname = uaname;
    }

    public String getPricetype() {
        return pricetype;
    }

    public void setPricetype(String pricetype) {
        this.pricetype = pricetype;
    }

    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public Integer getDownloadnumber() {
        return downloadnumber;
    }

    public void setDownloadnumber(Integer downloadnumber) {
        this.downloadnumber = downloadnumber;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjMobile)) {
            return false;
        }
        TTjMobile other = (TTjMobile) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjMobile[id=" + id + "]";
    }

}
